const Mock = require("mockjs");

const data = Mock.mock({
  "items|30": [
    {
      id: "@id",
      account: "@sentence(2, 20)",
      desc: "@sentence(10, 20)",
      mobile: "@sentence(13, 13)"
    }
  ]
});

module.exports = [
  {
    url: "/vue-admin-template/account/list",
    type: "get",
    response: config => {
      const items = data.items;
      return {
        code: 20000,
        data: {
          total: items.length,
          items: items
        }
      };
    }
  }
];
